package com.study.aptsample;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.study.bindview.BindViewUtil;
import com.study.bindviewannotation.BindView;
import com.study.bindviewannotation.OnClick;

public class MainActivity extends AppCompatActivity {

    @BindView(R.id.tv_hello)
    TextView tv_hello;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        BindViewUtil.bind(this);
    }

    @OnClick(R.id.btn_button)
    public void onClick(View view) {
        tv_hello.setText("绑定成功");
    }
}